package com.lzxzjy.serivce;

import com.lzxzjy.pojo.Announcement;
import com.lzxzjy.pojo.PageBean;

import java.util.List;

public interface AnnouncementService {
    boolean insertAnnouncement(Announcement admin);

    PageBean<Announcement> selectAnnouncementByPageAndTerms(Announcement admin, int currentPage, int pageSize);

    boolean deleteAnnouncementByIds(int[] adminIds);

    boolean deleteAnnouncementById(int adminId);

    boolean updateAnnouncementById(Announcement admin);

    List<Announcement> selectAllAnnouncement();
}
